package cz.nkp.urnnbn.shared.dto;

import java.io.Serializable;

public class ArchiverDTO implements Serializable {

	private static final long serialVersionUID = -1184131710944868612L;
	private Long id;
	private String created;
	private Long createdMillis;
	private String modified;
	private Long modifiedMillis;

	private String name;
	private String description;

	private Long order;
	private boolean hidden;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCreated() {
		return created;
	}

	public void setCreated(String created) {
		this.created = created;
	}

	public String getModified() {
		return modified;
	}

	public void setModified(String modified) {
		this.modified = modified;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getCreatedMillis() {
		return createdMillis;
	}

	public void setCreatedMillis(Long createdMillis) {
		this.createdMillis = createdMillis;
	}

	public Long getModifiedMillis() {
		return modifiedMillis;
	}

	public void setModifiedMillis(Long modifiedMillis) {
		this.modifiedMillis = modifiedMillis;
	}

	public Long getOrder() {
		return order;
	}

	public void setOrder(Long order) {
		this.order = order;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ArchiverDTO other = (ArchiverDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
}
